package com.examples.sorting;

public class GeneratePrintArray {
public static int[] generateRandomArray(int size) {
		
		int[] array = new int[size];
		int a;
		for(int i=0;i<array.length;i++) {
					a = (int)(Math.random()*100);
					if(a>0&&a<10)
						array[i] = a;
					else
						i--;
				
		}
		return array;
	}
	public static void printArray(int[] mat){
		for(int i = 0 ; i < mat.length ; i++ )	{
			System.out.print(mat[i]+",");
		}
		System.out.println();
	}
}
